#include "server.hpp"
#include "protocol.hpp"

void Usage()
{
    std::cout << "Usage:./tcp_server [port]" << std::endl;
}


int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        Usage();
        exit(1);
    }
    uint16_t port = atoi(argv[1]);

    TcpServer ts(port);
    ts.Init();
    ts.Run();
    return 0;
}